/**
 * Created by 浩容 on 2016/9/24.
 */
import javax.swing.JOptionPane;
public class Dialog1 {
    public static void main(String[] args) {
        // display a dialog with a message
        JOptionPane.showMessageDialog( null, "Welcome\nto\nJava" );
    }// end main
}// end class Dialog1
